From: Owen W. Taylor Date: Sat, 26 Jul 2014 14:45:28 +0000 (+0200) Subject: clutter.paintCompletedTimestamp: cogl_flush() before glFinish() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2303 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=83adb2a864af2f2947063d03005482ccade6383c;p=gnome-shell.git clutter.paintCompletedTimestamp: cogl_flush() before glFinish() Calling glFinish() doesn't give us a reliable timestamp unless we flush Cogl rendering to GL first. --- diff --git a/src/shell-global.c b/src/shell-global.c index bf38e7d98..8a5c9f3e1 100644 --- a/src/shell-global.c +++ b/src/shell-global.c @@ -834,6 +834,7 @@ global_stage_after_paint (ClutterStage *stage, if (!finish) load_gl_symbol ("glFinish", (void **)&finish); + cogl_flush (); finish (); shell_perf_log_event (shell_perf_log_get_default (),